<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
<!--    <script src="vue.js"></script>-->
    <script src="we.js"></script>
    <script src="Store.js"></script>
</head>
<body>
<div id="app">
    <div>{{obj.bbb}}</div>
</div>
</body>
</html>

<script>
    We.use(Store);
    var app = new We({
        el: '#app',
        data() {
            return {
                aaa: '555',
                obj: {
                    bbb: 'sss'
                }
            }
        },
        mounted(){
            this.aaa = '王麻子';
        }
    });
    console.log('app' , app);
    var store = new app.Store(
        {
            state : {
                a1 : 111,
            },
            mutations : {
                setA1 : function (state, value) {
                    state.a1 = value;
                },
            }
        }
    );
    store.$commit('setA1' , 222);
    console.log('store' , store);

</script>
